home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 23
/
AACD 23.iso
/
AACD
/
Programming
/
tek
/
array
/
createstring.c
< prev
next >
Wrap
C/C++ Source or Header
|
2001-05-12
|
337b
|
24 lines
#include "tek/array.h"
/*
** TEKlib
** (C) 2001 TEK neoscientists
** all rights reserved.
**
** string = TCreateString(TAPTR mmu, TUINT numchars)
**
** create dynamic string.
**
*/
TSTRPTR TCreateString(TAPTR mmu, TUINT numchars)
{
TSTRPTR str = TCreateArray(mmu, 1, numchars + 1, TNULL);
if (str)
{
*str = 0;
}
return str;
}